const Mock = require('mockjs')

module.exports = function (req) {
  const result = Mock.mock({
      id: "@id()", // 随机id
      title: "薛兆丰的经济学课", // 随机名字
      data: "@date()", // 随机日期
      time:"@time()",
      videoUrl: '@url("http", "baidu.com")', // 随机图片 大小 背景颜色  字体颜色 文字
      paragraph: "@cparagraph()", // 随机描述
      markNum:16000,
      collectNum:12280,
      editNum:3320,
      playNum:20003,
      teacher:"@cname",
      classRoom:'C804/704',
      className:'经管1班'
})
  return {
    "result": result,
    "error": null,
    "success": true,
    "code": "10000",
    "datetime": Date.now(),
  }
};
